Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import sys
>>> sys.platform
'win32'
>>> print(sys.version)
3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)]
>>> import os
>>> os.getcwd()
'D:\\Python3.8'
>>> import datetime
>>> datetime.date.today
<built-in method today of type object at 0x00007FFF35DBB870>
>>> import datetime
>>> datetime.date.today()
SyntaxError: multiple statements found while compiling a single statement
>>> import datetime
>>> datetime.date.today()
datetime.date(2020, 9, 21)
>>> 
>>> datetime.date.today().day
21
>>> datetime.date.today().month
9
>>> datetime.date.todat().year
Traceback (most recent call last):
  File "<pyshell#13>", line 1, in <module>
    datetime.date.todat().year
AttributeError: type object 'datetime.date' has no attribute 'todat'
>>> datetime.date.today().year
2020
>>> datetime.date.isoformat(datetime.date.today())'2020-9-21'
SyntaxError: invalid syntax
>>> datetime.date.isoformat(datetime.date.today())2020-9-21'
SyntaxError: invalid syntax
>>> datetime.date.isoformat(datetime.date.today())'2020-9-21'
SyntaxError: invalid syntax
>>> datetime.date.isoformat(datetime.date.today())
'2020-09-21'
>>> import time
>>> time.strftime("%H:&M")
'21:&M'
>>> import time
>>> time.strftime("%H:%M")
SyntaxError: multiple statements found while compiling a single statement
>>> import time
>>> time.strdtime("%H:%M")
Traceback (most recent call last):
  File "<pyshell#23>", line 1, in <module>
    time.strdtime("%H:%M")
AttributeError: module 'time' has no attribute 'strdtime'
>>> import time
>>> time.strftime("%H:%M")
'21:11'
>>> time.strftime("%A %P")
Traceback (most recent call last):
  File "<pyshell#26>", line 1, in <module>
    time.strftime("%A %P")
ValueError: Invalid format string
>>> time.strftime("%A %p")
'Monday PM'
>>> import html
>>> html.escape("This HTML fragment contains a <script>script</script> tag.")
'This HTML fragment contains a &lt;script&gt;script&lt;/script&gt; tag.'
>>> html.unescape("I &hearts; Python's &lt;standard libeaey&gt;.")
"I ♥ Python's <standard libeaey>."
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 10, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 1
1
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 10, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 10, in <module>
    right_this_minute = datetime.today() ,minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 10, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 9, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 12, in <module>
    if right_this_minute in odds:
NameError: name 'odds' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 9, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 9, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P16页的代码.py", line 9, in <module>
    right_this_minute = datetime.today(),minute
NameError: name 'minute' is not defined
>>> 
========================= RESTART: D:/Python/P16页的代码.py ========================
This minute seems a little odd.
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
========================= RESTART: D:\Python\P16页的代码.py ========================
Not an off minute.
Traceback (most recent call last):
  File "D:\Python\P16页的代码.py", line 17, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> for i in [1, 2, 3]:
	print(i)
1
SyntaxError: invalid syntax
>>> 
>>> for i in [1, 2, 3]:
	print(i)

	
1
2
3
>>> for ch in "Hi!":
	print(ch)

	
H
i
!

>>> for num in range(5):
	  print('Head First Rocks!')

	  
Head First Rocks!
Head First Rocks!
Head First Rocks!
Head First Rocks!
Head First Rocks!
>>> 
>>> 
>>> 
========================= RESTART: D:/Python/P18页的代码.py ========================
Traceback (most recent call last):
  File "D:/Python/P18页的代码.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
=========================== RESTART: D:/Python/p18.py ==========================
Traceback (most recent call last):
  File "D:/Python/p18.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
=========================== RESTART: D:/Python/p18.py ==========================
Traceback (most recent call last):
  File "D:/Python/p18.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 
=========================== RESTART: D:/Python/p18.py ==========================
Traceback (most recent call last):
  File "D:/Python/p18.py", line 1, in <module>
    if  today == 'Saturday':
NameError: name 'today' is not defined
>>> 
=========================== RESTART: D:/Python/p18.py ==========================
Traceback (most recent call last):
  File "D:/Python/p18.py", line 1, in <module>
    if today =='Saturday':
NameError: name 'today' is not defined
>>> 
=========================== RESTART: D:/Python/p18.py ==========================
Traceback (most recent call last):
  File "D:/Python/p18.py", line 1, in <module>
    if today == 'Saturday':
NameError: name 'today' is not defined
>>> 